package br.puc.paa.graph.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Grafo {
	
	private List<Vertice> vertices;
	
	public Grafo(){
		vertices = new ArrayList<Vertice>();
	}
	
	public void addVertice(Vertice vertice){
		if(!vertices.contains(vertice)){
			vertices.add(vertice);
		}
	}
	
	public List<Vertice> getVertices() {
		return Collections.unmodifiableList(vertices);
	}
	
}
